package com.it.dao;

import com.it.pojo.Books;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookMapper {
    //增
    int addBook(Books books);

    //删
    int deleteBooK(@Param("id") int id);

    //更新
    int updateBook(Books books);

    //单一查询
    Books findByID(@Param("id") int id);

    //全查
    List<Books> findAll();

}
